<html>
    <head>
        <title>Bienvenido a Mallow!!</title>
		<meta name="layout" content="main" />
    </head>
    <body>
        <h1>Bienvenido <g:loggedInUserInfo field="userRealName"/></h1>

		<h1>Lista de temas pendientes de ${person}</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="list">
                <table>
                    <thead>
                        <tr>
                            <g:sortableColumn property="name" title="Tema" />

                            <th>Tarea</th>

                            <th>Tipo</th>

                            <th>Reportado por</th>
                            	
							<th>Estado</th>

                            <g:sortableColumn property="appliedHours" title="Horas Dedicadas" />

							<th>Prioridad</th>

                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${issueInstanceList}" status="i" var="issueInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">

                            <td><g:link action="show" id="${issueInstance.id}">${fieldValue(bean:issueInstance, field:'name')}</g:link></td>

							<td>${fieldValue(bean:issueInstance, field:'task')}</td>
                            
							<td>${fieldValue(bean:issueInstance, field:'type')}</td>

                            <td>${fieldValue(bean:issueInstance, field:'submitter')}</td>
                            
							<td>${fieldValue(bean:issueInstance, field:'status')}</td>

                            <td>${fieldValue(bean:issueInstance, field:'appliedHours')}</td>

                            <td>${fieldValue(bean:issueInstance, field:'priority')}</td>

                        </tr>
                    </g:each>
                    </tbody>
       </table>
            </div>
            <div class="paginateButtons">
                <g:paginate total="${Issue.count()}" />
            </div>
        </div>

    </body>
</html>
